<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script src="./lib/echarts.min.js"></script>
	</head>
	<body>
		<div style="width: 600px; height: 400px"></div>

		<script type="text/javascript">
			let mCharts = echarts.init(document.querySelector('div'));
			let pieData = [
				{
					name: '淘宝',
					value: 11231,
				},
				{
					name: '京东',
					value: 22673,
				},
				{
					name: '唯品会',
					value: 6123,
				},
				{
					name: '1号店',
					value: 8989,
				},
				{
					name: '聚美优品',
					value: 6700,
				},
			];
			let option = {
				series: [
					{
						type: 'pie',
						data: pieData,
					},
				],
			};
			mCharts.setOption(option);
		</script>
	</body>
</html>
